#ifndef EdiflobMessage_h
#define EdiflobMessage_h

#include "Arduino.h"

class EdiflobMessage
{
    
    public:
      EdiflobMessage(String command,int index,double r,double g, double b,double t);
      static String Serialize(EdiflobMessage msg);
      static EdiflobMessage Deserialize(String msg);
      
      String getCommand();
      int getIndex();
      double getRed();
      double getGreen();
      double getBlue();
      double getTime();
      
    private:
      String _command;
      int _index;
      double _r;
      double _g;
      double _b; 
      double _time;
    
};
#endif
